<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="MaterialAttributes,sandy.materials.attributes.MaterialAttributes,attributes,flags,begin,draw,drawOnSprite,finish,init,unlink" name="keywords">
<title>sandy.materials.attributes.MaterialAttributes</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'MaterialAttributes - Sandy 3.1.2 API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Sandy 3D Engine, 3.1.2</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?sandy/materials/attributes/MaterialAttributes.html&amp;sandy/materials/attributes/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;MaterialAttributes</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class MaterialAttributes"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">sandy.materials.attributes</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class MaterialAttributes</td>
</tr>
</table>
<p></p>
  The MaterialAttributes class is used to apply one or more attributes to a Shape3D object.
  
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../../core/scenegraph/Shape3D.html" target="">sandy.core.scenegraph.Shape3D</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#attributes">attributes</a> : Array<div class="summaryTableDescription">
   List of attributes.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#flags">flags</a> : uint<div class="summaryTableDescription">[read-only]
  Returns flags for attributes.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#MaterialAttributes()">MaterialAttributes</a>(... args)</div>
<div class="summaryTableDescription">
   Creates a new LightAttributes object.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#begin()">begin</a>(p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</div>
<div class="summaryTableDescription">
  Method called before the display list rendering.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#draw()">draw</a>(p_oGraphics:Graphics, p_oPolygon:<a href="../../core/data/Polygon.html">Polygon</a>, p_oMaterial:<a href="../Material.html">Material</a>, p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</div>
<div class="summaryTableDescription">
  Draws all attributes to the graphics object.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#drawOnSprite()">drawOnSprite</a>(p_oSprite:<a href="../../core/scenegraph/Sprite2D.html">Sprite2D</a>, p_oMaterial:<a href="../Material.html">Material</a>, p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</div>
<div class="summaryTableDescription">
  Applies attributes to a sprite.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#finish()">finish</a>(p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</div>
<div class="summaryTableDescription">
  Method called right after the display list rendering.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#init()">init</a>(p_oPolygon:<a href="../../core/data/Polygon.html">Polygon</a>):void</div>
<div class="summaryTableDescription">
  Allows all attributes to proceed to an initialization to know when the polyon isn't lined to the material.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#unlink()">unlink</a>(p_oPolygon:<a href="../../core/data/Polygon.html">Polygon</a>):void</div>
<div class="summaryTableDescription">
  Remove all initializations (opposite of init method) from all attributes.</div>
</td><td class="summaryTableOwnerCol">MaterialAttributes</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="attributes"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">attributes</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var attributes:Array</code><p>
   List of attributes.
   </p></div>
<a name="flags"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">flags</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>flags:uint</code>&nbsp;&nbsp;[read-only]<p>
  Returns flags for attributes.
    </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get flags():uint</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../core/SandyFlags.html" target="">sandy.core.SandyFlags</a>
</div>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="MaterialAttributes()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MaterialAttributes</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function MaterialAttributes(... args)</code><p>
   Creates a new LightAttributes object.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code>... <span class="label">args</span></code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="begin()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">begin</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function begin(p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</code><p>
  Method called before the display list rendering. This is the common place for this attribute to precompute things.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oScene</span>:<a href="../../core/Scene3D.html">Scene3D</a></code> &mdash; The scene.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../attributes/MaterialAttributes.html#finish()" target="">finish()</a>
<br>
<a href="../../core/Scene3D.html" target="">sandy.core.Scene3D</a>
</div>
</div>
<a name="draw()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">draw</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function draw(p_oGraphics:Graphics, p_oPolygon:<a href="../../core/data/Polygon.html">Polygon</a>, p_oMaterial:<a href="../Material.html">Material</a>, p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</code><p>
  Draws all attributes to the graphics object.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oGraphics</span>:Graphics</code> &mdash; The Graphics object to draw attributes to.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oPolygon</span>:<a href="../../core/data/Polygon.html">Polygon</a></code> &mdash;  The polygon which is going to be drawn.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oMaterial</span>:<a href="../Material.html">Material</a></code> &mdash; The refering material.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oScene</span>:<a href="../../core/Scene3D.html">Scene3D</a></code> &mdash;  The scene.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../core/data/Polygon.html" target="">sandy.core.data.Polygon</a>
<br>
<a href="../../materials/Material.html" target="">sandy.materials.Material</a>
<br>
<a href="../../core/Scene3D.html" target="">sandy.core.Scene3D</a>
</div>
</div>
<a name="drawOnSprite()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">drawOnSprite</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function drawOnSprite(p_oSprite:<a href="../../core/scenegraph/Sprite2D.html">Sprite2D</a>, p_oMaterial:<a href="../Material.html">Material</a>, p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</code><p>
  Applies attributes to a sprite.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oSprite</span>:<a href="../../core/scenegraph/Sprite2D.html">Sprite2D</a></code> &mdash;  The Sprite2D object to draw attributes to.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oMaterial</span>:<a href="../Material.html">Material</a></code> &mdash; The refering material.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oScene</span>:<a href="../../core/Scene3D.html">Scene3D</a></code> &mdash;  The scene.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../core/scenegraph/Sprite2D.html" target="">sandy.core.scenegraph.Sprite2D</a>
<br>
<a href="../../materials/Material.html" target="">sandy.materials.Material</a>
<br>
<a href="../../core/Scene3D.html" target="">sandy.core.Scene3D</a>
</div>
</div>
<a name="finish()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">finish</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function finish(p_oScene:<a href="../../core/Scene3D.html">Scene3D</a>):void</code><p>
  Method called right after the display list rendering. This is the place to remove and dispose memory if necessary.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oScene</span>:<a href="../../core/Scene3D.html">Scene3D</a></code> &mdash; The scene.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../attributes/MaterialAttributes.html#begin()" target="">begin()</a>
<br>
<a href="../../core/Scene3D.html" target="">sandy.core.Scene3D</a>
</div>
</div>
<a name="init()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">init</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function init(p_oPolygon:<a href="../../core/data/Polygon.html">Polygon</a>):void</code><p>
  Allows all attributes to proceed to an initialization to know when the polyon isn't lined to the material.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oPolygon</span>:<a href="../../core/data/Polygon.html">Polygon</a></code> &mdash; The polygon.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../attributes/MaterialAttributes.html#unlink()" target="">unlink()</a>
<br>
<a href="../../core/data/Polygon.html" target="">sandy.core.data.Polygon</a>
</div>
</div>
<a name="unlink()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">unlink</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function unlink(p_oPolygon:<a href="../../core/data/Polygon.html">Polygon</a>):void</code><p>
  Remove all initializations (opposite of init method) from all attributes.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oPolygon</span>:<a href="../../core/data/Polygon.html">Polygon</a></code> &mdash; The polygon.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../attributes/MaterialAttributes.html#init()" target="">init()</a>
<br>
<a href="../../core/data/Polygon.html" target="">sandy.core.data.Polygon</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">API documentation for Sandy 3D Engine, Ver. 3.1.2</center>
</div>
</body>
</html>
<!--API documentation for Sandy 3D Engine, Ver. 3.1.2-->
